"""
二项分布的图形

"""

import numpy as np
from scipy.stats import binom as B
import matplotlib.pyplot as plt

rv = B(10, 0.5)
x = np.arange(0, 11, 1)
y = rv.pmf(x)

print(y)
plt.bar(x, y, width=0.6, color='red')
plt.show()
